<?php
require 'lib/PHPMailerAutoload.php';

$mail = new PHPMailer;

$mail->SMTPDebug = 3;

$mail->isSMTP();
$mail->Host = 'autumnmail.com';
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Port = 587;

$mail->Username = 'admin@autumnmail.com';
$mail->Password = 'byt3fact';

$mail->From = 'admin@autumnmail.com';
$mail->FromName = 'Admin';


$mail->addAddress('riyadh.iut@gmail.com');

//$mail->addReplyTo('info@example.com', 'Information');

//$mail->AddCustomHeader("In-Reply-To: <CAAyyG7oXeNx_4Bq5Phmg50dp2bhukVzUe4xZnFiwkMcRij3+TQ@mail.gmail.com>");

//$mail->WordWrap = 50;                                 // Set word wrap to 50 characters
//$mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
//$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name

$mail->isHTML(true);
$mail->Subject = 'about our last meeting';
$mail->Body    = '<html><body>This is the body in plain text for non-HTML mail clients</b></body></html>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail->send()) {
        echo 'Message could not be sent.';
        echo 'Mailer Error: ' . $mail->ErrorInfo;
    } else {
        echo 'Message has been sent';
    }
	
	
?>